package com.hafu.model;

import java.math.BigDecimal;

public class SpInfo {
    private int id;
    private String name;
    private BigDecimal price;
    private BigDecimal sellPrice;
    public SpInfo(int id, String name, BigDecimal price, BigDecimal sellPrice) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.sellPrice = sellPrice;
    }

    public SpInfo() {
    }
    public SpInfo(String name) {
        this.name = name;
    }
    public SpInfo(String name, BigDecimal price, BigDecimal sellPrice) {
        this.name = name;
        this.price = price;
        this.sellPrice = sellPrice;
    }


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getSellPrice() {
        return sellPrice;
    }

    public void setSellPrice(BigDecimal sellPrice) {
        this.sellPrice = sellPrice;
    }
    @Override
    public String toString(){
        return name;
    }
 }
